package 工具类.demo1;

import 工具类.ArrayUtil;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        ArrayList<student> list=new ArrayList<>();
    student stu1=new student("zhangsan",18,"男");
    student stu2=new student("lisi",15,"男");
    student stu3=new student("wangwu",19,"男");


    list.add(stu1);
    list.add(stu2);
    list.add(stu3);

    int maxAgeStudent=studentUtil.getMaxStudentAge(list);
        System.out.println(maxAgeStudent);
    }
}
